import java.util.ArrayList;

import com.ckv.qcm.model.Answer;
import com.ckv.qcm.model.AnswerType;
import com.ckv.qcm.model.Question;
import com.ckv.qcm.model.Theme;

public class Test {

	public static void main(String args[]) {

		Question q = new Question();
		q.setDescription("Question a la con");
		q.setStatement("Combien ?");
		q.setAnswerType(AnswerType.BestAnswer);
		q.setImage("osef");

		ArrayList<Answer> answers = new ArrayList<Answer>();
		answers.add(new Answer(1, "1000", true));
		answers.add(new Answer(2, "10", false));
		q.setAnswers(answers);
		
		ArrayList<Theme> themes = new ArrayList<Theme>();
		themes.add(new Theme(0, "sex"));
		themes.add(new Theme(0, "chatte"));
		q.setThemes(themes);
		
		//q = q.create();
		
		System.out.println(q.create());
	}
}
